Skip to content

refactor(wallet): remove cosmos-kit integration and deps from deploy-web#3313

Merged
baktun14 merged 3 commits into
mainfrom
chore/deploy-web-remove-cosmos-kit
Jun 15, 2026
Merged

refactor(wallet): remove cosmos-kit integration and deps from deploy-web#3313
baktun14 merged 3 commits into
mainfrom
chore/deploy-web-remove-cosmos-kit

Conversation

@baktun14

@baktun14 baktun14 commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Why

Closes CON-259

deploy-web is now managed-wallet only (self-custody lives in the separate Console Air app per AEP-84). The entire cosmos-kit wallet-connection stack was dead code: nothing outside it imported useChain/useManager/the wallet modal/the chain configs, and all signing already goes server-side via TxHttpService. Keeping these packages installed only bloated the bundle.

What

Removed the dead cosmos-kit stack and its dependencies from deploy-web:

  • Deleted the cosmos-kit-jotai abstraction layer, the src/chains/* chain-registry configs, and the no-op CustomChainProvider bootstrap wrapper (unwrapped from _app.tsx).
  • Uninstalled @cosmos-kit/core, @cosmos-kit/react, @cosmos-kit/keplr, @cosmos-kit/cosmostation-extension, @cosmos-kit/cosmos-extension-metamask, chain-registry, @chain-registry/types, and @interchain-ui/react (33 packages removed from the lockfile).
  • Removed the now-dead NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID env var.

Scope note on @cosmjs/* (descoped AC)

The AC item "searching for @cosmjs returns zero matches" is not addressed here and is intentionally deferred. @cosmjs/* is still required by the managed flow — customRegistry.ts (consumed by TxHttpService) builds the tx Registry from @cosmjs/proto-signing + @cosmjs/stargate, plus EncodeObject/Decimal/base64 usage. The issue author already flagged this with "verify; TransactionMessageData may still need EncodeObject". Removing @cosmjs requires the API to own transaction building+signing first, now tracked as follow-ups:

  • CON-477 — Build and sign managed-wallet transactions entirely in the API
  • CON-478 — Remove blockchain message construction from the deploy-web frontend (blocked by CON-477; finally satisfies the @cosmjs criterion)

Verification

  • grep @cosmos-kit / chain-registry / @interchain-ui / cosmos-kit-jotai in apps/deploy-web/src0 matches
  • tsc, lint --quiet, unit tests, next build all pass (the only pre-existing tsc/test failures on main are unrelated and unchanged by this PR)

Bundle size (before → after next build)

Artifact Before (main) After
pages/_app chunk (raw) 5.92 MB 5.02 MB (−0.90 MB, ~15%)
pages/_app source map 19 MB 15.8 MB

Summary by CodeRabbit

Release Notes

  • Refactor
    • Removed the custom chain provider and the wallet connect/modal UI flow, including chain-store initialization and related hooks/components.
    • Removed Akash network support and its chain listings (Akash, Akash sandbox, Akash testnet).
  • Chores
    • Updated Auth0 configuration and added client-side Sentry DSN; removed WalletConnect project setting.
    • Refreshed deploy-web dependencies (removed wallet/UI and chain registry packages).
  • Tests
    • Removed wallet/chain-store component and hook test coverage.
  • Style
    • Updated global font styling to consistently apply GeistSans.

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 13ffeba4-3cb0-4e75-b460-868f1c2098b8

📥 Commits

Reviewing files that changed from the base of the PR and between ec3b3e2 and fcbab70.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (26)
  • apps/deploy-web/env/.env
  • apps/deploy-web/package.json
  • apps/deploy-web/src/chains/akash-sandbox.ts
  • apps/deploy-web/src/chains/akash-testnet.ts
  • apps/deploy-web/src/chains/akash.ts
  • apps/deploy-web/src/chains/index.ts
  • apps/deploy-web/src/context/CustomChainProvider/CustomChainProvider.spec.tsx
  • apps/deploy-web/src/context/CustomChainProvider/CustomChainProvider.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/ChainStoreInitializer/ChainStoreInitializer.spec.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/ChainStoreInitializer/ChainStoreInitializer.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/ModalWrapper/ModalWrapper.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/WalletModal/WalletListView.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/WalletModal/WalletModal.spec.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/WalletModal/WalletModal.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/context/ChainStoreProvider.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/hooks/useChain/useChain.spec.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/hooks/useChain/useChain.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/hooks/useManager/useManager.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/index.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/ChainStore.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/constants.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/utils.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/walletManagerFactory.ts
  • apps/deploy-web/src/pages/_app.tsx
  • apps/deploy-web/src/pages/_document.tsx
  • apps/deploy-web/src/styles/index.css
💤 Files with no reviewable changes (23)
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/ChainStoreInitializer/ChainStoreInitializer.spec.tsx
  • apps/deploy-web/src/chains/akash-testnet.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/index.ts
  • apps/deploy-web/env/.env
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/walletManagerFactory.ts
  • apps/deploy-web/src/chains/akash-sandbox.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/constants.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/hooks/useManager/useManager.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/ChainStoreInitializer/ChainStoreInitializer.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/ModalWrapper/ModalWrapper.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/WalletModal/WalletModal.spec.tsx
  • apps/deploy-web/src/context/CustomChainProvider/CustomChainProvider.spec.tsx
  • apps/deploy-web/src/context/CustomChainProvider/CustomChainProvider.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/WalletModal/WalletListView.tsx
  • apps/deploy-web/src/chains/index.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/hooks/useChain/useChain.spec.tsx
  • apps/deploy-web/src/lib/cosmos-kit-jotai/context/ChainStoreProvider.tsx
  • apps/deploy-web/package.json
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/utils.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/store/ChainStore.ts
  • apps/deploy-web/src/chains/akash.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/hooks/useChain/useChain.ts
  • apps/deploy-web/src/lib/cosmos-kit-jotai/components/WalletModal/WalletModal.tsx
✅ Files skipped from review due to trivial changes (1)
  • apps/deploy-web/src/styles/index.css
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/deploy-web/src/pages/_app.tsx
  • apps/deploy-web/src/pages/_document.tsx

📝 Walkthrough

Walkthrough

Removes the cosmos-kit-jotai wallet infrastructure from apps/deploy-web by dropping wallet-related npm packages and dependencies; updates environment variables for Auth0 and Sentry configuration; unwires CustomChainProvider from the app's provider tree; and applies GeistSans typography to the root HTML element.

Changes

cosmos-kit-jotai wallet stack removal and styling update

Layer / File(s) Summary
Dependency and environment variable updates
apps/deploy-web/env/.env, apps/deploy-web/package.json
Removes @cosmos-kit/*, @interchain-ui/react, chain-registry, @chain-registry/types, and @cosmjs/amino from dependencies and devDependencies. Replaces NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID with AUTH0_AUDIENCE, AUTH0_SCOPE, and NEXT_PUBLIC_SENTRY_DSN environment variables.
App provider tree unwiring
apps/deploy-web/src/pages/_app.tsx
Removes CustomChainProvider import and wrapper, unwiring the wallet provider from the application's context tree.
GeistSans font configuration
apps/deploy-web/src/pages/_document.tsx, apps/deploy-web/src/styles/index.css
Applies GeistSans.variable to root <Html> element and adds font-family: var(--font-geist-sans) CSS property to html selector with system font fallbacks.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

ignore-apps-deps-scan

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/deploy-web-remove-cosmos-kit

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread package-lock.json
@codecov

codecov Bot commented Jun 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.93%. Comparing base (d3c1ed3) to head (fcbab70).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3313      +/-   ##
==========================================
+ Coverage   68.81%   68.93%   +0.11%     
==========================================
  Files        1096     1080      -16     
  Lines       26837    26469     -368     
  Branches     6435     6367      -68     
==========================================
- Hits        18468    18246     -222     
+ Misses       7326     7204     -122     
+ Partials     1043     1019      -24     
Flag Coverage Δ
api 84.85% <ø> (+0.02%) ⬆️
deploy-web 54.12% <ø> (+0.03%) ⬆️
log-collector 85.85% <ø> (ø)
notifications 91.44% <ø> (ø)
provider-console 81.38% <ø> (ø)
provider-inventory 84.93% <ø> (-0.05%) ⬇️
provider-proxy 86.37% <ø> (ø)
tx-signer 78.37% <ø> (ø)
see 27 files with indirect coverage changes
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread apps/deploy-web/env/.env
@baktun14 baktun14 closed this Jun 15, 2026
@baktun14 baktun14 deleted the chore/deploy-web-remove-cosmos-kit branch June 15, 2026 13:49
@baktun14 baktun14 changed the title chore(wallet): remove cosmos-kit integration and deps from deploy-web refactor(wallet): remove cosmos-kit integration and deps from deploy-web Jun 15, 2026
@baktun14 baktun14 reopened this Jun 15, 2026
@baktun14 baktun14 force-pushed the chore/deploy-web-remove-cosmos-kit branch from 470796f to ec3b3e2 Compare June 15, 2026 13:52
@baktun14 baktun14 enabled auto-merge June 15, 2026 17:57
baktun14 added 3 commits June 15, 2026 14:08
Delete the dead cosmos-kit wallet-connection stack (cosmos-kit-jotai
abstraction, chain-registry configs, and the no-op CustomChainProvider
bootstrap wrapper) now that deploy-web is managed-wallet only, and
uninstall the cosmos-kit / chain-registry / interchain-ui packages.

@cosmjs/* is intentionally retained: it is still required for tx-message
building in customRegistry/TxHttpService. Removing it depends on moving
transaction construction and signing into the API (tracked separately).

Ref CON-259
Modals/popups render in a portal at document.body, outside the app's
<main> that carries GeistSans.variable, so --font-geist-sans was
undefined there and they fell back to the browser serif default. This
was previously masked by a global font injected by @interchain-ui,
which was removed alongside cosmos-kit. Define the font variable on
<Html> and set an explicit body font-family so portaled content
inherits Geist.
@cosmjs/amino was only pulled in by the removed cosmos-kit signing
code; knip flags it as an unused devDependency. Remove it to keep the
dependency set clean.
@baktun14 baktun14 force-pushed the chore/deploy-web-remove-cosmos-kit branch from ec3b3e2 to fcbab70 Compare June 15, 2026 18:09
@baktun14 baktun14 added this pull request to the merge queue Jun 15, 2026
Merged via the queue into main with commit 6d581d1 Jun 15, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants